package com.pinda.feign;


import com.pinda.base.entity.PdGoodsType;
import com.pinda.users.entity.PdAddressBook;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@FeignClient(value = "aggregation-service",url = "http://127.0.0.1:2001")
public interface PdAreaControllerFeignClients {

    @ResponseBody
    @PostMapping("pd-area/getByCode")
    public PdAddressBook getByCode(@RequestBody PdAddressBook pdAddressBook);

    @ResponseBody
    @PostMapping("pd-goods-type/getListPdGoodsType")
    public List<PdGoodsType> getListPdGoodsType();

}
